﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CarsApp
{
    class Car
    {
        private string brand;
        private string imageFileName;
        private int latestMileage;
        private int latestTotalLiters;
        private int latestLitersTanked;
        private int latestLitersLeft;
        public string GetBrand { get; set; }
        public int GetMileage { get; set; }
        public int GetLitersTank { get; set; }
        public int GetLitersTotal { get; set; }
        public int GetLatestLitersLeft { get; set; }



        public void UpdateChart(int latestMil, int LiterLeft, decimal litersTanked)
        {
            latestMil = latestMileage;
            //TotalLiters = latestTotalLiters;
            LiterLeft = latestLitersLeft;
            litersTanked = latestLitersTanked;

        }
        public decimal GetFuelEfficiency(int latestMil,int TotalLiters,int LiterLeft,decimal litersTanked)
        {
            decimal result;
            
            latestMil = latestMileage;
            TotalLiters = latestTotalLiters;
            LiterLeft = latestLitersLeft;
            litersTanked = latestLitersTanked;
            latestMileage = 10000;
            result = latestMileage / (latestTotalLiters - latestLitersTanked - latestLitersLeft);
            return result;
        }        

    }

}

